﻿using System;
using System.Collections.Generic;
using System.Text;
namespace Model
{
    public enum RSTStatusCode
    {
        NONE = 0, OK = 200, UNKNOWNMODEL = 404, UNKNOWNMOTHED = 405, Forbidden = 403, UNAUTHORIZED = 401
    }

    [Serializable]
    public class RST<T>
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public RSTStatusCode RSTCode { get; set; }

        /// <summary>
        /// 消息
        /// </summary>
        public string RSTMessage { get; set; }

        /// <summary>
        /// 数据实体
        /// </summary>
        public T RSTData { get; set; }
    }
}
